[PATCH libaio 22/28] harness: Add fallback code for filesystems not supporting O_DIRECT
authorGuillem Jover <guillem@hadrons.org>
Sat, 20 Jul 2019 19:21:01 +0000 (21:21 +0200)
committerGuillem Jover <guillem@debian.org>
Thu, 24 Dec 2020 14:41:17 +0000 (14:41 +0000)
commitf7bdbc21454f5fadb539e15509765d6ec9319d0f
treece985aa4e6a50a1aae3cacb8ba5c01c2075f2992
parentf02880ce8655a452aaf1d10dd910f43f320f874e
[PATCH libaio 22/28] harness: Add fallback code for filesystems not supporting O_DIRECT

When running the harness on a filesystem such as a tmpfs, which do not
support O_DIRECT, fallback to calls without the flag.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
[JEM: change from duplicating the open call to using F_SETFL]
[JEM: 18 and 21 require O_DIRECT-skip if not present]
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0022-harness-Add-fallback-code-for-filesystems-not-suppor.patch
harness/cases/17.t
harness/cases/18.t
harness/cases/19.t
harness/cases/21.t